#include "MainWindow.h"
#include "ui_MainWindow.h"

#include <QDebug>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
    , m_recoder(this)
{
    ui->setupUi(this);

    m_recoder.enumDevice();
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_startRecord_clicked()
{
    m_recoder.openDevice();
}


void MainWindow::on_pushButton_clicked()
{
    m_recoder.stop();
}

